package com.study.netty.parse;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.nio.charset.StandardCharsets;

/**
 * 消息接收后处理类
 */
@Slf4j
@Component
public class MsgParse {

    public byte[] doParse(String msg) {
        log.info("doparse 接收到消息：{}", msg);
        byte[] bytes = "UDP已经接收到消息：".getBytes(StandardCharsets.UTF_8);
        return bytes;
    }
}
